package com.tarena.practice.manage.controller;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.tarena.practice.manage.pojo.Categories;
import com.tarena.practice.manage.service.CategoriesService;

@Controller
@RequestMapping("category/")
public class CategoryController {
	
	@Autowired
	private CategoriesService categoriesService;
	
	/**
	 * 获取详细的分类名称
	 */
	@RequestMapping("name/detail") 
	@ResponseBody
	public	List<Categories> queryCategoryDetail(){
		List<Categories> map = categoriesService.queryCategoryDetail();
		return map;
	}
}
